import javax.microedition.io.Connector;
import javax.microedition.io.SocketConnection;
import javax.microedition.lcdui.Form;

public class PlayTwo
{
  public static Game start(Form log, String host, String port, String nome)
    throws Exception
  {
    log.append("Connectando ao IP: " + host);

    SocketConnection conn = (SocketConnection)Connector.open("socket://" + 
      host + ":" + port);
    return new Game(conn.openInputStream(), conn.openOutputStream(), 2, nome);
  }
}